import App from './App'
import baseConfig from './request/config.js';

Vue.prototype.$baseConfig = baseConfig;

import tools from './utils/tools.js';
Vue.prototype.$tools = tools;

import uView from '@/uni_modules/uview-ui';
Vue.use(uView);

// vconsole 移动端调试，开启需要先执行 npm install vconsole
// // #ifdef H5
// if (process.env.H_NODE_ENV !== 'production') {
// 	const vconsole = require('vconsole')
// 	Vue.prototype.$vconsole = new vconsole()
// }
// // #endif

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
const app = new Vue({
	...App
})
app.$mount()
// #endif

// #ifdef VUE3
import {
	createSSRApp
} from 'vue'
export function createApp() {
	const app = createSSRApp(App)
	return {
		app
	}
}
// #endif